Microsoft® Visual Basic® Scripting Edition Stop Statement |
| Home |
|
Suspends code execution.
StopWhen a Stop statement is encounted in VBScript code, the Microsoft Script Debugger is automatically started, if it isn't already open. The context for the debug session is the context of the code where the Stop statement appeared.
You can place Stop statements anywhere in procedures to suspend execution. Using the Stop statement is similar to setting a breakpoint in code. The value of all variables is preserved while execution is suspended.